<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="h_a">搜索(请输入手机号码进行查询)</div>
	<div class="search_type cc mb10">
		<form method="get" action='<yjd:url url="/smscontent/list"/>' autocomplete="off">
			<label>手机号码(<font style="color:#F00">必输</font>)：</label><input
				name="mobile_number" type="text" class="input length_4 mr10" value="${param.mobile_number }"
				placeholder="手机号码">
			<label>状态:</label>
			<select name="status">
				<option value="">--请选择--</option>
				<c:forEach items="${smsStatusList }" var="item">
				<option ${param.status!='' && item.status==param.status?"selected='selected'":"" } value="${item.status }">${item.description }</option>
				</c:forEach>
			</select>
			<button type="submit" class="btn">搜索</button>
		</form>
	</div>
	
	<!-- 列表 -->
	<c:set var="hashData" value="${pager.pagerModel.dataList!=null && fn:length(pager.pagerModel.dataList)>0 }" />
	<div class="table_list">
		<table width="100%">
			<thead>
				<tr>
					<td width="50">手机号</td>
					<td width="300">内容</td>
					<td width="60">发送次数</td>
					<td width="100">发送时间</td>
					<td width="100">实际发送时间</td>
					<td width="100">发送状态</td>
					<td width="100">返回信息</td>
				</tr>
			</thead>
	
		<c:if test="${hashData }">
			<tbody id="J_word_list">
			<c:forEach items="${pager.pagerModel.dataList }" var="item">
				<tr>
					<td>${item.mobile_number }</td>
					<td>${item.smscode }</td>
					<td>${item.num }</td>
					<td>${item.strMap.sent_time }</td>
					<td></td>
					<td></td>
					<td></td>
				</tr>
			</c:forEach>
			</tbody>
		</c:if>
		</table>
	</div>
	<!-- 分页 -->
	<%@ include file="../../public/pager/pager.pagination.jsp" %>
</div>